import request from '@/utils/request'
// 获取排班列表
export function getWorkSchedulings(params) {
  return request({
    url: '/manager/work-schedulings',
    params,
    headers: { 'Aurhorization': localStorage.getItem('token') }
    // headers: { 'Authorization': 'eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIxMDI0NzA1NzA5MjU1NzczMzQ1IiwiYWNjb3VudCI6InNoZW5saW5nYWRtaW4iLCJuYW1lIjoi56We6aKG566h55CG5ZGYIiwib3JnaWQiOjEwMjQ3MDQ4NDQ0ODY3NTY2NDEsInN0YXRpb25pZCI6MTAyNDcwNTQ4OTQzNjQ5NDcyMSwiYWRtaW5pc3RyYXRvciI6ZmFsc2UsImV4cCI6MTY4MTI0MTc0Nn0.wq25XERY4m4k5mpGUbl3MVxoAyO4ntOE8STEVJeW2Lh9ffhkbOzljx44_o3vyPp2X8KEtei-C55u-tFogZVDBw' }
  })
}
// 获取工作模式列表
export function getWorkPattern(params) {
  return request({
    url: '/manager/work-patterns/all',
    params
  })
}
// 获取所属机构树形结构
export function getBussinessTree(params) {
  return request({
    url: '/manager/business-hall/tree',
    params
  })
}

// 获取所属机构树形结构
export function putRelateWork(data) {
  return request({
    url: '/manager/work-schedulings',
    method: 'put',
    data
  })
}
// 工作模式分页查询
export function getWorkPatternPage(params) {
  return request({
    url: '/manager/work-patterns/page',
    params
  })
}

